


public class OpenDropBox {
	
	
	
/*	private static OpenDropBox open = new OpenDropBox();
	private static RemoteGUI remote = RemoteGUI.inst;
	//private static Thread t;
	private static boolean run = true;
	//private static ControlRemote control;
	
	  @param args
	
	public static void main(String[] args) {
		String cmd="start";
		if(args.length > 0){ 
			cmd = args[0];
		}
		
		if("start".equals(cmd)) {
			System.out.println("START");
	    	open.start();
			
	    }
	    else if("stop".equals(cmd)) {
	    	System.out.println("STOP");
			open.stop();
		} 
	 else if("open".equals(cmd)) {
	    	System.out.println("OPEN");
			open.openShell();
		}
	}


//	private void openShell() {
		//remote.openShell();
		//remote = RemoteGUI.inst;
		//RemoteGUI.openShell();
	//	synchronized (control) {
	//		control.notify();
	//	}
	//}

	public void stop() {
		//control.setRun(false);
		run = false;
		synchronized (this) {
			this.notify();
		}
		//t.interrupt();
	}

	public void start(){
		run = true;
		//RemoteGUI.showGUI();
		
		//control = new ControlRemote();
		//t = new Thread(control);
		//t.start();
		//remote = RemoteGUI.inst;
		//RemoteGUI.showGUI();
		while(run){
			
			synchronized (this) {
				try {
					this.wait();
					//remote.openShell();
					
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
//			remote.closeService();
		}
		
	}

*/
}


